package com.southminority.ethnic.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.southminority.ethnic.column.ExcelColumn;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户表
 * @TableName user
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="language_nation")
@Data
public class LanguageNation extends BasePoJo implements Serializable {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    @ExcelColumn(name = "主键ID", columnWidth = 10, value = "1",hidden = true)
    private Long id;
    /**
     * 父级ID(非空表示为二级分类)
     */
    @Schema(description = "父级ID(非0表示为二级分类)")
    @ExcelColumn(name = "父级ID(非0表示为二级分类)", columnWidth = 10, value = "1",hidden = true)
    private Long fatherId;

    /**
     * 民族分类名称
     */
    @Schema(description = "民族分类名称")
    @ExcelColumn(name = "民族分类名称", columnWidth = 10, value = "苗族",nonNull = true)
    private String categoryName;
}
